Static Public Member Functions | |
XFCIMPORT INT32 | createResource (XFcResource *aCallback, const UINT32 aSize) |
Creates a new resource with the default resource type. | |
XFCIMPORT INT32 | createResource (XFcResource *aCallback, const UINT32 aSize, const UINT32 aFlags) |
Creates a new resource with the given resource type. | |
XFCIMPORT INT | removeResource (const INT32 aId) |
Removes a resource. | |
XFCIMPORT void | removeResources () |
Removes all resources which are removable. | |
XFCIMPORT INT | queryResource (const INT32 aId) |
Queries whether a certain resource is available in memory. | |
XFCIMPORT INT | evictResource (const INT32 aId) |
Evicts the data of a resource. | |
XFCIMPORT void | evictResources () |
Evicts all resources from memory which are removable. | |
XFCIMPORT INT | preloadResource (const INT32 aId) |
Preloads the data of a resource to memory. | |
XFCIMPORT void | preloadResources () |
Tries to preload data of all resources to memory. | |
XFCIMPORT void * | lockResource (const INT32 aId) |
Locks a resource for use. | |
XFCIMPORT INT | unlockResource (const INT32 aId) |
Unlocks a resource. |
|
Creates a new resource with the given resource type. Creates a new resource whose type is determined by the given flags.
|
|
Creates a new resource with the default resource type.
|
|
Evicts the data of a resource. Frees the internal data of a resource, the resource header stays in memory. The internal data will be loaded into memory when the resource is being locked or it can be loaded into memory with the preloadResource()-function.
|
|
Evicts all resources from memory which are removable. Frees the internal data of all resources, the resource headers stay in memory. The internal data will be loaded into memory when the resource is being locked or it can be loaded into memory with the preloadResource()-function. |
|
Locks a resource for use. Locks a resource so that it can not be moved nor removed while the lock is on. If the internal data of a resource is not present in memory, a callback is made to the resource so it will be loaded into memory again.
|
|
Preloads the data of a resource to memory. Loads the internal data of a resource into memory. The actual implementation is just a lock and unlock of the resource.
|
|
Tries to preload data of all resources to memory. Tries to load the internal data of all resources into memory. |
|
Queries whether a certain resource is available in memory. Queries whether the internal data of a resource is present in memory. The resource headers stay in memory until the removeResource()-function is called but the internal data might not be if it has been evicted temporarily to free memory.
|
|
Removes a resource.
|
|
Removes all resources which are removable.
|
|
Unlocks a resource. Unlocks a resource so it can be moved or removed again if needed. The call will fail if the resource id is not valid or the resource is not locked in the first place.
|
![]() | ||||
![]() |
Confidential Copyright © 2002-2003 Fathammer | with doxygen by Dimitri van Heesch |